package io.renren.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 电脑设备
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2021-10-08 18:05:43
 */
@Data
@TableName("jx_computy_device")
public class JxComputyDeviceEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 电脑名称
	 */
	@NotBlank(message="请填写设备名称", groups = {AddGroup.class, UpdateGroup.class})
	private String deviceName;
	/**
	 * 电脑编号
	 */
	@NotBlank(message="请填写设备编号", groups = {AddGroup.class, UpdateGroup.class})
	private String num;
	/**
	 * 实验室id
	 */
	@NotNull(message="请填实验室id", groups = {AddGroup.class, UpdateGroup.class})
	private Long laboratoryId;
	/**
	 * 电脑ip
	 */
	@NotBlank(message="请填写设备ip", groups = {AddGroup.class, UpdateGroup.class})
	private String ip;
	/**
	 * 端口号
	 */
	@NotNull(message="请填写设备端口号", groups = {AddGroup.class, UpdateGroup.class})
	private Integer port;
	/**
	 * 使用状态
	 */
	private String useStatus;

	@TableField(exist=false)
	private  String deviceStatus;

	@TableField(exist=false)
	private String laboratoryName;

	@TableField(exist=false)
	private String laboratoryNum;

	/**
	 * 公网ip
	 */
	@TableField(exist=false)
	private String internetIp;

}
